package com.vueblog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 商品信息
 * @TableName t_goods
 */
@TableName(value ="t_goods")
@Data
public class Goods implements Serializable {
    /**
     * 商品id
     */
    @TableId(type = IdType.AUTO)
    private Integer goodId;

    /**
     * 商品名称
     */
    private String goodName;

    /**
     * 商品单价
     */
    private Double goodPrice;

    /**
     * 商品图片路径
     */
    private String goodImg;

    /**
     * 商品库存
     */
    private Integer goodStock;

    /**
     * 运费0：免运费1：不免运费
     */
    private Integer goodFreight;

    /**
     * 商品详情
     */
    private byte[] goodDetails;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}